package com.zoo.diannaopeijian.common.mapper;

import org.apache.ibatis.annotations.InsertProvider;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.special.InsertListMapper;
import tk.mybatis.mapper.provider.SpecialProvider;

import java.util.List;

/**
 * Created by zx583 on 2018-02-06.
 * 自定义的通用mapper模板
 * 修正InsertListMapper插入接口，去除返回id功能，实现批量插入的可用
 */
public interface CommMapper<T> extends Mapper<T>, InsertListMapper<T> {
    @Override
    @InsertProvider(
            type = SpecialProvider.class,
            method = "dynamicSQL"
    )
    int insertList(List<T> var1);
}
